package com.cat.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lmy
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_info")
@Schema(description = "UserInfo对象")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "姓名")
    private String username;

    @Schema(description = "昵称")
    private String nickName;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "用户名密码")
    private String password;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "用户状态")
    private Integer status;

    @Schema(description = "用户手机号")
    private String phone;

    @Schema(description = "会员信息")
    private String member;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户性别 1男 2女")
    private Integer gender;

    @Schema(description = "身份证号码")
    @TableField("id_card")
    private String idCard;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更改时间")
    private LocalDateTime updateTime;

    @Schema(description = "用户头像地址")
    private String avatar;
}
